package com.ruoyi.car.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 乘客信息对象 passenger
 * 
 * @author xiaolin
 * @date 2025-01-21
 */
@Data
public class Passenger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识符，用于区分不同的乘客 */
    private Long id;

    /** 用户名或昵称 */
    @Excel(name = "用户名或昵称")
    private String username;
    @Excel(name = "微信小程序标识")
    private String openid;
    /** 乘客手机号 */
    @Excel(name = "乘客手机号")
    private String phoneNumber;

    /** 男女其他 */
    @Excel(name = "男女其他")
    private String gender;

    /** 加密密码 */
    @Excel(name = "加密密码")
    private String passwordHash;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;


    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;


    private Long sysUserId;


   /* public Long getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Long sysUserId) {
        this.sysUserId = sysUserId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setPasswordHash(String passwordHash) 
    {
        this.passwordHash = passwordHash;
    }

    public String getPasswordHash() 
    {
        return passwordHash;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setLoginTime(Date loginTime)
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime()
    {
        return loginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid",getOpenid())
            .append("username", getUsername())
            .append("phoneNumber", getPhoneNumber())
            .append("gender", getGender())
            .append("passwordHash", getPasswordHash())
            .append("createdAt", getCreatedAt())
            .append("loginTime", getLoginTime())
            .append("sysUserId", getSysUserId())
            .toString();
    }*/
}
